<?php
class MemoryCache
{
	private static $data;

	public function get($key)
	{
		if (!isset($this->data[$key]))
		{
			return false;
		}
	
		return $this->data[$key];
	}
	
	public function set($key, $value)
	{
		$this->data[$key] = $value;
		return true;
	}

	public function del($key)
	{
		if (isset($this->data[$key]))
		{
			unset($this->data[$key]);
			return true;
		}
		else
		{
			return false;
		}
	}
}
